package org.gordonframework.demos.forms {	import org.gordonframework.site.events.GFormEvent;		import org.gordonframework.site.forms.elements.GButton;		import org.gordonframework.site.forms.GForm;	import org.gordonframework.site.forms.elements.GTextInput;	import org.gordonframework.site.views.GDocument;		/**	 * @author erik	 */	public class FormDemo1 extends GDocument {				private var form : GForm;				public function FormDemo1() {			super();						form = new GForm();			addChild( form );						form.addElement( new GTextInput( "username", "", true ) );			form.addElement( new GTextInput( "password", "", true, "", true ) );			form.addElement( new GButton( GButton.SUBMIT, "Submit" ) );						form.addEventListener( GFormEvent.SUBMIT, formSubmitHandler );		}				private function formSubmitHandler( event : GFormEvent ) : void {			// handle form data.		}	}}